<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <link th:href="@{/css/web.css}" rel="stylesheet">
    <style>
        body{
            height: 1688px;
        }
    </style>
</head>
<body>
<div class="topdiv">
    <img class="logo" th:src="@{/images/logo.png}">
    <div  class="personal" >

        <div th:if="${session.currUser}">
            <a th:text="${session.currUser.username}"></a>
            <a th:href="@{/}">购物车</a>
            <a th:href="@{/}">我的订单</a>
        </div>
    </div>
</div>
<div class="leftdiv">
    <ul class="menu">
        <!--遍历分类-->
        <li th:each="type:${types}">
            <a th:href="@{/product/getProduct(typeid=${type.id})}" target="main" th:text="${type.typename}"></a>
        </li>
    </ul>
</div>
<div class="maindiv">
    <iframe name="main" th:src="@{/product/mainPage}" width="100%" height="100%" frameborder="no" scrolling="no"></iframe>
</div>
</body>
</html>